package com.xbongbong.paas.binders;

import com.xbongbong.pro.rabbitmq.constant.BusinessBinderConstant;
import org.springframework.cloud.stream.annotation.Input;
import org.springframework.messaging.MessageChannel;
import org.springframework.stereotype.Service;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/5/7 14:50
 * @since v1.0
 */
@Service("businessRuleConsumerBinder")
public interface BusinessRuleConsumerBinder {

    /**
     * 业务规则消费者
     * @return
     */
    @Input(BusinessBinderConstant.RULE_INPUT)
    MessageChannel ruleInput();



    /**
     * 业务规则消费者
     * @return
     */
    @Input(BusinessBinderConstant.IMPORT_RULE_INPUT)
    MessageChannel importRuleInput();
}
